﻿using UnityEngine;
namespace HBFramework
{
    /// <summary>
    /// Panel基类
    /// </summary>
    public abstract class BasePanel
    {
        public abstract int RemainTime { get; }
        public abstract int Layer { get; }
        public abstract string Path { get; }

        public abstract void OnInit(GameObject ui);
        public abstract void OnRelease();
        public virtual void OnShow() { }
        public virtual void OnUpdate() { }
        public virtual void OnHide() { }

        public void CloseSelf()
        {
            PanelManager.Instance.ClosePanel(this);
        }
    }
}

